<?php

    require_once('configuration.php');
    require_once('class.database.php');
    require_once('class.news.php');

    $news1 = new news();
    $news1 -> nometu = "Thiebaut";
    $news1 -> preetu = "Gerard";
    $news1 -> teletu = "06095145";
    $news1 -> maileetu = "thiebaut.gerardc@gmail.com";

    $news2 = new news();
    $news2 -> nometu = "Test2";
    $news2 -> preetu = "TB-TT";
    $news2 -> teletu = "06092521";
    $news2 -> maileetu = "lol@gmail.fr";

    if(isset($news1, $news2))
    {
	echo ('ok');
	$news2 -> save();
    }
    else
    {
	echo ('erreur');
    }

    var_dump($news1,$news2);

?>